var NewsCon = iClass.set("News", function(news_info) {
	this._id = NewsCon.getUuid();
	this.setInfo(news_info)
	this.create_time = +new Date();

	db.insert(this.dbname, this);
});
NewsCon.getList = function(num, page) {
	var news_list = db.find_all(NewsCon.dbname);
	//处理参数
	var total_num = news_list.length;
	num = ~~num;
	num > 0 || (num = total_num); //num > 0
	page = ~~page;
	page >= 0 || (page = 0); //page >= 0
	var total_page = Math.ceil(total_num / num) || 1;
	//整理数据
	news_list = news_list.slice().reverse().page(num, page);

	return {
		total_num: total_num,
		total_page: total_page,
		num: num,
		page: page,
		list: news_list
	};
}